package com.loong.controller;


import com.loong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @GetMapping("/hello/{sno}/{name}")
    public String hello(@PathVariable("sno") String sno, @PathVariable("name") String name) {
        return "hello 你的" + sno + name + "，这是你的第一个SpringBoot项目（Maven方式创建）";
    }

}
